package decorator;

/**
 * 定义炒面类
 * 具体构件角色
 */
public class FriedNoodles extends FastFood {

    public FriedNoodles() {
        super(8, "炒面价格");
    }

    @Override
    public float cost() {
        return super.getPrice();
    }
}
